package algorithm.graph;

/**
 * @author bingo
 * @Date 2018/3/27
 */
public class Client {

    public static void main(String[] args) {
        String fileName="demo/testG.txt";
        Graph  sparseGraph = new SparseGraph(9,false);
        ReadGraph readGraph = new ReadGraph();
        sparseGraph  = readGraph.readGraph(sparseGraph,fileName);
        sparseGraph.show();
        for(int i:sparseGraph.adj(6)){

            System.out.println("i="+i);
       }

        Path path = new Path(sparseGraph,0);
        path.showPath(6);

        }

}
